## -*- coding: utf-8 -*-

<%inherit file="top.html" />
<%block name="title">
	Home
	% if pages != 1:
		[${page}/${pages}]
	% endif
</%block>

% for post in posts:
	<div class="post">
		<div class="grid_6 alpha">
			<h1 class="post-title"><a href="${post['link']}">${post['title']}</a></h1>
		</div>
		<div class="grid_2 omega date">
			${post['date']}
		</div>
		<div class="grid_8 post-body">
			${post['html']}
		</div>
	</div>
% endfor
% if prev or next:
	<div class="grid_8 pagenav alpha">
		% if prev:
			<a href="${prev}">Previous</a> |
		% endif
		Page ${page} of ${pages}
		% if next:
			| <a href="${next}">Next</a>
		% endif
	</div>
% endif